home *** CD-ROM | disk | FTP | other *** search
- 41
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- MemoryInfo
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baMemoryInfo returns information about system memory.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baMemoryInfo( InfoType )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- InfoType is the type of information to get. Can be:
- --- RECORDSEPARATOR ---
- "ram"
- --- RECORDSEPARATOR ---
- the amount of physical ram installed -
- --- RECORDSEPARATOR ---
- Win, Mac
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- "free ram"
- --- RECORDSEPARATOR ---
- the amount of physical ram not being used -
- --- RECORDSEPARATOR ---
- Win, Mac
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- "swap"
- --- RECORDSEPARATOR ---
- the size of the current swap file -
- --- RECORDSEPARATOR ---
- Win
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- "free swap"
- --- RECORDSEPARATOR ---
- the amount of the swap file not being used -
- --- RECORDSEPARATOR ---
- Win
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- ΓÇ£freeΓÇ¥
- --- RECORDSEPARATOR ---
- the amount of free memory, including physical and virtual
- --- RECORDSEPARATOR ---
- -
- --- RECORDSEPARATOR ---
- Mac
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- ΓÇ£max blockΓÇ¥
- --- RECORDSEPARATOR ---
- the largest block of memory, including physical and virtual
- --- RECORDSEPARATOR ---
- -
- --- RECORDSEPARATOR ---
- Mac
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns the information in bytes.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set ram = baMemoryInfo( "ram" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- free := baMemoryInfo( "free ram" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Under OSX, the free and max block options return a large meaningless number.
- --- RECORDSEPARATOR ---
- This is due to the memory management system of OSX.